<template>
  <div>
    <h3>弹窗的主体</h3>
    <el-form ref="form" :model="newFrom" label-width="80px">
      <el-form-item label="活动名称">
        <el-input v-model="newFrom.name" />
      </el-form-item>
      <el-form-item label="活动名称">
        <el-input v-model="newFrom.age" />
      </el-form-item>
    </el-form>
  </div>
</template>

<script>

export default {
  props: ['from'],
  data() {
    return {
      start: 1,
      limit: 10,
      newFrom: this.from
    }
  },
  watch: {
    from(val) {
      this.newFrom = val
    }
  },
  created() {
    // this.refsFrom()
  },
  methods: {
    amet() {
      console.log(this.newFrom)
      this.$emit('xufangqing', this.newFrom)
    }
    // qingchu() {
    //   console.log(this.newFrom)
    //   this.from = {}
    // },
    // // refsFrom() {
    //   this.newFrom = this.from
    // }
  }
}
</script>

<style>

</style>
